package sharewithus.ex.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import sharewithus.ex.service.EXService;
import framelib.controller.AbsController;


/**
 * Title:EXController
 * Description: test
 * @Create_by:Vince Yu
 * @Create_date:2012-5-4
 * @Last_Edit_By:
 * @Edit_Description
 * @version:ShareWithUs 1.0
 * 
 */
@Controller
//@SessionAttributes()
public class EXController extends AbsController{
	@SuppressWarnings("unchecked")
	@Autowired
	@Qualifier("EXService")
	EXService EXService;

	/**
	 * Title:
	 * Description:test
	 * @Create_by:Vince Yu
	 * @Create_date:2012-5-4
	 * @Last_Edit_By:
	 * @Edit_Description
	 * @Create_Version:ShareWithUs 1.0
	 */
	@RequestMapping(value="/ex.htm")
    public String ex(String id, ModelMap map,HttpServletRequest request) {
    	try {
    		String ex = "e";
    		EXService.getName(ex);
    		//int i = Integer.parseInt(ex);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return "ex";
	}
	
}
